@import 'color';

.console-layers {
  position: relative;
  height: 100%;

  .console-layer {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow-y: auto;

    &.with-mask {
      background-color: rgba(black, 0.3);
    }

    .layer-title {
      color: $color-text-assist;
      background-color: $white;
      border-radius: 2px;
      margin-bottom: 20px;
      padding: 10px;

      font-size: 14px;

      .anticon {
        font-size: 16px;
        margin-right: 5px;
      }
    }

    &.layer-enter {
      opacity: 0.01;
      left: 200px;
      transition: all .2s;
    }
    &.layer-enter.layer-enter-active {
      opacity: 1;
      left: 0;
    }
    &.layer-leave {
      opacity: 1;
      top: 0;
      transition: all .2s;
    }
    &.layer-leave.layer-leave-active {
      opacity: 0.01;
      top: 200px;
    }
  }

  .layer-cover {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(black, 0.2);
  }
}
